<template>
  <div class="app" style="border: 3px solid #000; margin: 10px">
    我是父组件
    <Son :title="title" :name="name" @changeTitle="title = $event"></Son>
  </div>
</template>

<script>
import Son from "./components/Son.vue";
export default {
  name: "App",
  data() {
    return {
      title: "学前端，就来黑马程序员",
      name: "你好",
    };
  },
  components: {
    Son,
  },
};
</script>

<style></style>
